/* 基础样式 */
.client-management {
  padding: 24px;
  max-height: calc(100vh - 171px);
  overflow-y: auto;
  background-color: #FCFBF8;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23704214' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  justify-content: center;
}

.btn i {
  margin-right: 6px;
}

.btn-primary {
  background-color: #556B2F;
  color: white;
}

.btn-primary:hover {
  background-color: #4a5d27;
}

.required {
  color: #dc2626;
}

/* 页面头部 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.page-title {
  font-size: 24px;
  font-weight: bold;
  color: #704214;
  margin: 0;
}

.page-description {
  color: #6b7280;
  margin: 5px 0 0 0;
  display: flex;
  align-items: center;
}

.page-description i {
  color: #556B2F;
  margin-right: 6px;
}

/* 客户卡片列表样式 */
.client-list-section {
  margin-bottom: 30px;
}

.client-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.client-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: none;
  background-color: white;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-card-content {
  display: flex;
  align-items: center;
  padding: 16px;
}

/* 文字头像样式 */
.text-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #556B2F;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  margin-right: 16px;
  transition: all 0.3s ease;
}

.client-card:hover .text-avatar {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(85, 107, 47, 0.2);
}

/* 详情页大尺寸文字头像 */
.large-text-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #556B2F;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(85, 107, 47, 0.15);
}

.client-card-info {
  flex: 1;
}

.client-name {
  font-size: 18px;
  font-weight: 500;
  color: #704214;
  margin-bottom: 4px;
}

.client-phone,
.last-visit {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}

/* 模态框样式增强 */
.ant-modal {
  border-radius: 12px !important;
}

.ant-modal-content {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.ant-modal-header {
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 18px 24px !important;
  border-radius: 12px 12px 0 0 !important;
  background-color: #FCFBF8 !important;
}

.ant-modal-title {
  color: #704214 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.ant-modal-close {
  top: 18px !important;
  right: 24px !important;
}

.ant-modal-close:hover {
  color: #556B2F !important;
}

/* 弹窗内容样式 */
.responsive-modal {
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px;
}

/* 简化版详情页样式 */
.detail-content-simple {
  padding: 10px 0;
}

.client-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}

.client-header-info {
  margin-left: 20px;
}

.client-header-info h3 {
  margin: 0 0 8px 0;
  color: #704214;
  font-size: 22px;
  font-weight: 500;
}

.client-header-info p {
  margin: 0 0 8px 0;
  color: #6b7280;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.client-header-info p i {
  margin-right: 6px;
  color: #556B2F;
}

/* 信息卡片样式增强 */
.info-card {
  background-color: #FCFBF8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #704214;
  margin: 0 0 18px 0;
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}

.info-card-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: #556B2F;
  margin-top: 8px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f7f7f7;
}

.info-item:last-child {
  border-bottom: none;
}

.full-width {
  width: 100%;
}

.info-label {
  color: #6b7280;
  flex-shrink: 0;
  width: 100px;
  text-align: left;
  font-weight: 500;
}

.block {
  display: block;
  margin-bottom: 5px;
}

.info-value {
  font-weight: 500;
  text-align: right;
  flex-grow: 1;
  word-break: break-word;
  padding-left: 15px;
  color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .two-column-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .spending-stats {
    grid-template-columns: 1fr;
  }
  
  .preferences-grid {
    grid-template-columns: 1fr;
  }
  
  .client-cards {
    grid-template-columns: 1fr;
  }
  
  .info-label {
    width: 80px;
  }

  .large-text-avatar {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .client-management {
    padding: 12px;
  }
  
  .ant-modal {
    width: 100% !important;
    margin: 0;
  }
  
  .page-title {
    font-size: 20px;
  }

  .responsive-modal {
    padding: 16px;
  }

  .client-header {
    flex-direction: column;
    text-align: center;
  }

  .client-header-info {
    margin-left: 0;
    margin-top: 16px;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-value {
    text-align: left;
    padding-left: 0;
    margin-top: 4px;
    width: 100%;
  }
}
